package com.funong.matrix.biz.power.facade.impl;

import com.funong.matrix.biz.power.domain.SysMenuDomainDao;
import com.funong.matrix.biz.power.facade.SysRoleMenuFacade;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Arrays;
import java.util.List;

/**
 * 角色菜单
 *
 * @author lincl
 */
@Service
public class SysRoleMenuFacadeImpl implements SysRoleMenuFacade {

    @Resource
    private SysMenuDomainDao sysMenuDomainDao;

    @Override
    public List<String> queryMenuCodeByRoleCode(String roleCode) {
        return sysMenuDomainDao.queryMenuCodeByRoleCode(Arrays.asList(roleCode));
    }
}
